package com.traffic.fuwu.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import com.traffic.fuwu.service.AccountService;
import com.traffic.fuwu.service.RoleService;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.Map;

/**
 * 用户角色模块管理
 *
 * @author Churcy
 */
@Controller
public class RoleController {

    @Autowired
    private AccountService accountService;

    @Autowired
    private RoleService roleService;

    /**
     * 创建角色,同时赋予角色可操作 菜单权限
     * @param request
     * @return
     */
    public Object create(HttpServletRequest request) {
        Map<String, Object> map = new HashMap<>();

        try {
            //1.获取
            do {
                System.out.println("");
            } while (false);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }
    /**
     * 修改角色对应的菜单
     * @param request
     * @return
     */
    public Object modify(HttpServletRequest request) {
        Map<String, Object> map = new HashMap<>();

        try {
            //1.获取
            do {
                System.out.println("");
            } while (false);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }
}
